<?php
namespace Api\Controller;

use Think\Controller;

class InfoController extends Controller
{

    protected $info_model;
    public function _initialize()
    {
        $this->info_model = D("Common/Info");

    }
    /**
     * 获取信息
     */
    public function getInfos()
    {
       $sql = "SELECT * FROM cmf_info";
        $infos = $this->info_model->query($sql);
        $this->returnok($infos, 'ok');
    }
}